package com.shpng.cheapenglish.action.admin;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.shpng.cheapenglish.db.UserUnit;
import com.shpng.cheapenglish.db.UserWord;
import com.shpng.cheapenglish.db.Word;
import com.shpng.cheapenglish.manager.WordManager;

public class DeleteWordAction {

	public String execute(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
//		WordManager wordManager = WordManager.getInstance();
//
//		List<UserWord> userWords = wordManager.getUserWords();
//		for (UserWord uw : userWords)
//			wordManager.deleteUserWord(uw);
//
//		List<UserUnit> userUnits = wordManager.getUserUnits();
//		for (UserUnit userUnit : userUnits) {
//			wordManager.deleteUserUnit(userUnit);
//		}
//		
//		List<Word> words = wordManager.getAllWords();
//		for (Word w : words) {
//			wordManager.deleteWord(w);
//		}
		return "/pages/word-input.jsp";
	}

}
